import { ApiProperty } from '@nestjs/swagger';
import { IsHash } from 'class-validator';

export class ChangePasswordAdminReqDto {
  @ApiProperty({ description: '原密码（MD5加密）' })
  @IsHash('md5', { message: '原加密方式错误' })
  readonly old_password: string;

  @ApiProperty({ description: '新密码（MD5加密）' })
  @IsHash('md5', { message: '新密码加密方式错误' })
  readonly new_password: string;
}
